<?php

/**
 * ProductionDemand form.
 *
 * @package    ProdAssistant
 * @subpackage form
 * @author     Paweł Świtalla
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class SelectProjectForm extends BaseForm
{
  public function configure()
  {
    $core = PACore::getInstance();
    $this->setWidget('project', new sfWidgetFormDoctrineChoice(array('model' => 'Project', 'add_empty' => false)));
    
    $this->getWidget('project')->setLabel('Projekt <br /><a onclick="App.loadWindow(\''.$core->generateAppUrl('Core', 'homeGetComponent', true, array('componentModule' => 'ProductionSettings', 'name' => 'manageProjects', 'handler' => 'refreshLastForm')).'\')" class="active"><img src="/images/icons/add.png" class="middle" height="18" width="18"></a>');
  }
}
